-- CALC_EQUIP_8500_PROP

-- 计算暗行灯系装备的基础属性
-- @param user 玩家对象
-- @param classId 装备对象id
return function(user, classId)
    -- 暗行者称号等级
    local pet = user:getActivePet();
    if not pet then
        return {};
    end
    
    local skillLevel = CareerM.getCareerLevel(pet, 204);
    skillLevel  = math.max(1, skillLevel);
    local value = 50 + skillLevel * 50;

    -- 大盗神之灯
    if classId == 8501 then
        return {{200, "magic", skillLevel, -1,}, {764, 1, value, -1,}, {763, 1, 1, -1,},};
    end

    -- 异界之灯
    if classId == 8502 then
        return {{200, "magic", skillLevel, -1,}, {764, 1, value, -1,}, {756, 1, 1, -1},};
    end

    -- 精灵王之灯
    if classId == 8503 then
        return {{200, "magic", skillLevel, -1,}, {764, 1, value, -1,}, {97, 1, 200, -1},};
    end

    return {{200, "magic", skillLevel, -1,}, {764, 1, value, -1,},};
end